package com.sfac.springCloudTest.service.impl;


import com.sfac.springCloudTest.dao.CountryDao;
import com.sfac.springCloudTest.service.CountryService;
import org.example.test.entity.Country;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * @author jzq
 * @date 2022/8/18 13:57
 */
@SuppressWarnings({"all"})
@Service
public class CountryServiceImpl implements CountryService {

    @Autowired
    private CountryDao countryDao;


    @Override
    public Country getCountryByCountryId(int countryId) {
        return countryDao.getCountryByCountryId(countryId);
    }


    @Override
    public Country getCountryByCountryName(String countryName) {
        return countryDao.getCountryByCountryName(countryName);
    }

}
